var HouseHistory=function(type){
   $.ajax({
   type: "GET",
   dataType:"html",
   url: "/tools/ajax.php",
   data: "action=EsHouse&type="+type,
   success: function(msg){
       if(msg==""){
           $(".search").append('<div class="search_2"></div>');
           $(".search").append(' <div class="search_3"><a href="/info.php?fid=1#mode=mai"></a></div>');
       }else{
         $(".search").append(msg);
       }
   }
   });
}

    $(document).ready(function(){
        window.setInterval("scroll2()",1);
        
        $.ajax({
            type: "GET",
            dataType:"html",
            url: "/tools/ajax.php",
            data: "action=HouseHistory2",
            success: function(msg){
                if(msg==""){
                    hideConstrast2();
                }else{
                    $("#popConstrast2").css("display","block");
                    $("#llhistory").append(msg);
                }
            }
   });
});
    function show_hide2(){
		if($("#show_hide2").css("display")=="block"){
			$("#show_hide2").css("display","none");	
		}else{
			$("#show_hide2").css("display","block");		
		}
	}
    function hideConstrast2(){
		$("#popConstrast2").css("display","none");
	}
        var lastScrollY=0;
	function scroll2(){
		var diffY;
		if (document.documentElement && document.documentElement.scrollTop)
			diffY = document.documentElement.scrollTop;
		else if (document.body)
			diffY = document.body.scrollTop
		else
		{	}
		percent=.1*(diffY-lastScrollY);
		if(percent>0)
			percent=Math.ceil(percent);
		else 
			percent=Math.floor(percent);
		document.getElementById("popConstrast2").style.top=parseInt(document.getElementById("popConstrast2").style.top)+percent+"px";
		lastScrollY=lastScrollY+percent;
	}


